package edu.sctu.zcy.month201505.day20150506.joggletrain;

/**
 * Created by user24 on 2015/5/5.
 */
public class MainFunction implements InterFace {

    public void print() {
        Dogone dogone = new Dogone();
        dogone.nature();
        dogone.getNature(this);

        Dogtwo dogtwo = new Dogtwo();
        dogtwo.nature();
        dogtwo.getNature(this);

        Dogthree dogthree = new Dogthree();
        dogthree.nature();
        dogthree.getNature(this);
    }

    public void setNature(String color, String size, String action) {
        System.out.println(color + "\n" + size + "\n" + action);
    }


}
